<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
	  xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:ui="http://java.sun.com/jsf/facelets"
      >
    <body>
	    <ui:composition>
			 <div class="header">
				<h:form>
					<div id="navbar">
						<ul id="navlist">
							<li>
								<h:outputLink value="home.xhtml">
									<h:outputText value="#{msgs.home}"/>
								</h:outputLink>
							</li>
							<li>
								<h:outputLink value="editSchedule.xhtml">
									<h:outputText value="#{msgs.editTS}"/>
								</h:outputLink>
							</li>
							<li>
								<!-- viewUser link only visible to Admin -->
								<h:outputLink value="viewUsers.xhtml" rendered="#{credentials.isAdmin()}">
									<h:outputText value="#{msgs.viewUsers}"/>
								</h:outputLink>
							</li>
							<li>
								<h:outputLink value="oldTimeSheets.xhtml">
									<h:outputText value="#{msgs.viewOldTS}"/>
								</h:outputLink>
							</li>
							<li>
								<h:commandLink value="#{msgs.logout}" action="#{credentials.logout()}" />
							</li>
						</ul>
					</div>
				</h:form>
 			</div>
	    </ui:composition>
    </body>
</html>